home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Source Code
/
Visual Basic Source Code.iso
/
vbsource
/
techno2a
/
frmweb.frm
< prev
next >
Wrap
Text File
|
1999-09-24
|
8KB
|
249 lines
VERSION 5.00
Object = "{48E59290-9880-11CF-9754-00AA00C00908}#1.0#0"; "MSINET.OCX"
Begin VB.Form Frmweb
BackColor = &H00800000&
BorderStyle = 1 'Fixed Single
Caption = "Web Sites to checkout"
ClientHeight = 4680
ClientLeft = 45
ClientTop = 330
ClientWidth = 7695
ClipControls = 0 'False
ControlBox = 0 'False
LinkTopic = "Form3"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 4680
ScaleWidth = 7695
StartUpPosition = 2 'CenterScreen
Begin VB.CommandButton Command1
Height = 735
Left = 480
Picture = "Frmweb.frx":0000
Style = 1 'Graphical
TabIndex = 3
Top = 3720
Width = 855
End
Begin VB.PictureBox Picture1
Height = 375
Left = 0
ScaleHeight = 315
ScaleWidth = 315
TabIndex = 2
Top = 0
Visible = 0 'False
Width = 375
End
Begin VB.TextBox Text1
Height = 285
Left = 0
TabIndex = 1
Text = "Text1"
Top = 360
Visible = 0 'False
Width = 375
End
Begin InetCtlsObjects.Inet Inet1
Left = 0
Top = 0
_ExtentX = 1005
_ExtentY = 1005
_Version = 393216
End
Begin VB.CommandButton CmdDilbert
Caption = "Load Dilbert"
Height = 855
Left = 6240
Picture = "Frmweb.frx":08D2
Style = 1 'Graphical
TabIndex = 0
Top = 240
Width = 1095
End
Begin VB.Label lblDisclaimer
Alignment = 2 'Center
BackStyle = 0 'Transparent
Caption = "More coffee productions"
BeginProperty Font
Name = "Gigi"
Size = 14.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00004080&
Height = 465
Left = 4680
TabIndex = 11
Top = 4200
Width = 2895
End
Begin VB.Label Label6
BackStyle = 0 'Transparent
BeginProperty Font
Name = "MS Sans Serif"
Size = 9.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H8000000E&
Height = 255
Index = 1
Left = 240
TabIndex = 10
Top = 3360
Width = 4935
End
Begin VB.Label Label6
Alignment = 2 'Center
BackStyle = 0 'Transparent
Caption = "National Directory www.555-1212.com"
BeginProperty Font
Name = "MS Sans Serif"
Size = 9.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H8000000E&
Height = 255
Index = 0
Left = 240
TabIndex = 9
Top = 3000
Width = 7335
End
Begin VB.Label Label5
Alignment = 2 'Center
BackStyle = 0 'Transparent
Caption = "Web Developement www.Artezia.com"
BeginProperty Font
Name = "MS Sans Serif"
Size = 9.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H8000000E&
Height = 255
Left = 240
TabIndex = 8
Top = 2640
Width = 7335
End
Begin VB.Label Label4
Alignment = 2 'Center
BackStyle = 0 'Transparent
Caption = "Restaurants in middle TN. www.theRestaurants.com"
BeginProperty Font
Name = "MS Sans Serif"
Size = 9.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H8000000E&
Height = 255
Left = 240
TabIndex = 7
Top = 2280
Width = 7335
End
Begin VB.Label Label3
Alignment = 2 'Center
BackStyle = 0 'Transparent
Caption = "Downloads www. Download.com "
BeginProperty Font
Name = "MS Sans Serif"
Size = 9.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H8000000E&
Height = 255
Left = 240
TabIndex = 6
Top = 1920
Width = 7335
End
Begin VB.Label Label2
Alignment = 2 'Center
BackStyle = 0 'Transparent
Caption = "Dilbert www.unitedmedia.com"
BeginProperty Font
Name = "MS Sans Serif"
Size = 9.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FFFFFF&
Height = 255
Left = 240
TabIndex = 5
Top = 1560
Width = 7335
End
Begin VB.Label Label1
BackColor = &H00800000&
Caption = $"Frmweb.frx":0BDC
ForeColor = &H00FFFFC0&
Height = 975
Left = 360
TabIndex = 4
Top = 240
Width = 5655
End
End
Attribute VB_Name = "Frmweb"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Sub CmdDilbert_Click()
Dim Pos As Integer
Dim Pos2 As Integer
Dim Bilden() As Byte
Dim NrString As String
On Error GoTo bottom
Text1.Text = Inet1.OpenURL("http://www.unitedmedia.com/comics/dilbert/archive/") 'Download the page.
Pos = InStr(1, Text1.Text, "/comics/dilbert/archive/images/dilbert")
Pos2 = InStr(Pos, Text1.Text, ".gif")
NrString = Mid(Text1.Text, Pos, Pos2 - Pos)
Text1.Text = "http://www.unitedmedia.com" + NrString + ".gif" ' Debug filename
Bilden() = Inet1.OpenURL("http://www.unitedmedia.com" + NrString + ".gif", icByteArray) ' Download picture.
Open "C:\dilbert.gif" For Binary Access Write As #1 ' Save the file.
Put #1, , Bilden()
Close #1
Picture1.Picture = LoadPicture("c:\dilbert.gif") 'Reload it to PictureBox
SavePicture Picture1.Picture, "c:\dilbert.bmp" 'Converted to bmp..
Call SystemParametersInfo(20, 0, "c:\dilbert.bmp", 1) 'Change the wallpape